package com.example.demo.model.json;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

public
/**
 * https://blog.csdn.net/qq_37385617/article/details/104649180?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522162372168416780274137320%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=162372168416780274137320&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduend~default-2-104649180.first_rank_v2_pc_rank_v29&utm_term=SQL+Error%3A+1054%2C+SQLState%3A+42S22&spm=1018.2226.3001.4187
 * 如果实体类中变量名为 aaaBcc 的时候，数据库中属性名应为 aaa_bcc ，不对应会报错
 */
@Entity//实体
class VideoApp {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)//自增长策略
    private Long id;//唯一标识 这里必须为id，数据表也要改成id 不然编译报错

    private int showAd;//是否显示广告   1是 0否
    private int mustUpdate;//强制更新  1是 0否
    private String download_url;//app的下载链接
    private String version;//app的版本
    private String applicationId;//app的包名
    private String content;//app的文字信息简介


    private String updateTitle;//app更新标题信息
    private String updateContent;//app更新文字信息
    public VideoApp() {//无参默认构造器
    }
    public String getDownload_url() {
        return download_url;
    }

    public void setDownload_url(String download_url) {
        this.download_url = download_url;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public int getShowAd() {
        return showAd;
    }

    public void setShowAd(int showAd) {
        this.showAd = showAd;
    }

    public String getApplicationId() {
        return applicationId;
    }

    public void setApplicationId(String applicationId) {
        this.applicationId = applicationId;
    }

    public String getContent() {
        return content;
    }
    public int getMustUpdate() {
        return mustUpdate;
    }

    public void setMustUpdate(int mustUpdate) {
        this.mustUpdate = mustUpdate;
    }
    public void setContent(String content) {
        this.content = content;
    }
    public String getUpdateContent() {
        return updateContent;
    }  public String getUpdateTitle() {
        return updateTitle;
    }

    public void setUpdateTitle(String updateTitle) {
        this.updateTitle = updateTitle;
    }

    public void setUpdateContent(String updateContent) {
        this.updateContent = updateContent;
    }
}
